package com.njlime.member.entiies;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.njlime.core.base.entities.BaseEntity;
import com.njlime.core.web.validation.RegexType;
import com.njlime.core.web.validation.annotation.Validate;

/**
 * 实体类
 *
 * @since 
 */
@Entity
@Table(name = "t_member_notice")
public class MemberNotice  extends BaseEntity  {
    private Integer member_id; // 通知所属用户id
    private Integer type; // 通知类型：1普通2定时
    private String title; // 通知标题
    private String content; // 通知内容
    private Integer is_status; // 通知是否被阅读
    private Date create_time; // 通知生成时间
    private Integer business_id; // 业务id
    private Integer business_type; // 业务类型


    /**
     * 通知类型
     * NORMAL = 1; //普通
     * REGULAR = 2; //定时
     */
    public static final class NoticeType{
        public static final Integer NORMAL = 1; //普通
        public static final Integer REGULAR = 2; //定时
    }

    public Integer getMember_id() {
        return member_id;
    }

    public void setMember_id(Integer member_id) {
        this.member_id = member_id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getIs_status() {
        return is_status;
    }

    public void setIs_status(Integer is_status) {
        this.is_status = is_status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getBusiness_id() {
        return business_id;
    }

    public void setBusiness_id(Integer business_id) {
        this.business_id = business_id;
    }

    public Integer getBusiness_type() {
        return business_type;
    }

    public void setBusiness_type(Integer business_type) {
        this.business_type = business_type;
    }
}